
import React, { Component } from 'react'

export class A extends Component {
    // 不再关注跟该组件不相关的事情
    render() {
        return (
            <div>A:{this.props.a}</div>
        )
    }
}

export class B extends Component {
    render() {
        return (
            <div>B:{this.props.b}</div>
        )
    }
}


export default class Comps extends Component {
    render() {
        return (
            <div>Comps</div>
        )
    }
}
